<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伸缩容器_伸缩的伸</title>
    <style>
        body{
            display: flex;
        }
        .outer{
            width: 1000px;
            height: 1000px;
            background-color: gray;
            display:flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: flex-start;
            align-items: baseline;
        }
        .inner{
            width: 200px;
            height: 200px;
            border: 1px solid black;
            box-sizing: border-box;
            background-color: skyblue;
            /*
            需要查看有多少个伸缩项目有这个属性,之后根据属性值去等比分配剩余的空间
            多出来的宽度是根据 个数和数值来决定分配的
            */
            flex-grow: 1;/*默认值是0,有空间也不瓜分*/
        }
        .inner2{
            flex-basis: 300px;
        }
    </style>
</head>
<body>
<div class="outer">
    <div class="inner">1</div>
    <div class="inner inner2">2</div>
    <div class="inner">3</div>

</div>
</body>
</html>